package com.wx.spider.java.controller;

import com.wx.spider.java.feign.SqlWsClient;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
public class TestController {

    @Autowired
    private SqlWsClient sqlWsClient;

    @Value("${server.port}")
    String port;

    @Autowired
    public RocketMQTemplate rocketMQTemplate;

    @RequestMapping(value = "/hi")
    public String hi() {
        return "hi:" + port;
    }

    
}
